<?php
if ($query->num_rows()>0){
	$admin_data=$query->row();
}
?>
<div align="center" class="information"></div>
<div class="bajouter" align="center">Edit Profile</div>
<div style="margin:10px 0px 10px 0px;">
    <form   method="POST" id="formcheck" action="<?php echo site_url('avis_admin/edit_profile').'/'.$admin_data->id;?>" enctype="multipart/form-data">
        <table width="100%" id="formactu" cellpadding="10px" cellspacing="0">
            <tr>
            	<td><span>Name </span><input  type="text" readonly="readonly"  name="last_name" value="<?php echo $admin_data->name?>" ><br/></td>
                <td><span>First Name </span><input  type="text"   name="first_name" value="<?php echo $admin_data->first_name?>" ><br/></td>
                <td><span>Last Name </span><input  type="text"  name="last_name" value="<?php echo $admin_data->last_name?>" ><br/></td>

                <td><input type="submit" name="submit" value=" CHANGE " /></td>
            </tr>
        </table>
       <?php echo validation_errors(); ?>
    </form>
</div>